import React, { createRef } from 'react'

const Demo9 = () => {
    const iptEl = createRef()
    return (
        <div>
            <input
                type='text'
                ref={iptEl}
                onChange={() => {
                    console.log('value', iptEl.current.value)
                }}
            />
        </div>
    )
}

export default Demo9
